package Event.mainLine;

import Creature.Player;
import Engine.System1;
import Event.MainStory;

import javax.swing.*;

public class mainLine11 extends MainStory {
    public mainLine11(Player player) {
        super(player);
        this.lineIndex = 11;
        this.nextEventIndex = 12;
        headerUrl = System1.class.getResource("/Interface/干部小区.png");
        header = new ImageIcon(headerUrl);
        eventName = "机遇";
        happenText = "你看了一下里面肉蛋奶蔬菜齐全，你把物资送到了干部的套房门口，屋内的人突然和你搭话，说有一个发财的机会给你，你决定…";
        options = new String[]{"接受", "拒绝"};
    }
    public void eventHappen(int option) {
        switch (option) {
            case 0:
                endText = "你帮助他运送外地进来的援助货物，卖给了各个小区需要食物的人，抽了巨额的佣金。";
                this.child = new End4(player);
                break;
            case 1:
                endText = "你离开了。你觉得自己不能继续下去了";
                this.child = new End3(player);
                break;

        }
    }
}

